<?
	$menu = array(
		'add' => array('title' => 'Add', 'url'=>'/'),
		'purchases' => array('title' => 'Purchases', 'url'=>'/purchases'),
		'categories' => array('title' => 'Categories', 'url'=>'/categories'),
		'settings' => array('title' => 'Settings', 'url'=>'/settings')
	);
	if (!isset($menu_select)) {
		$menu_select = '';
	}
?>
	<ul id="menu">
	<?
	foreach($menu as $k => $m) {
		$class = '';
		if ($k == $menu_select) {
			$class = 'selected';
		}
		?><li class="<?= $class ?>"><?= $html->link($m['title'], $m['url']) ?></li><?
	}
	?>
	</ul>
